export interface WriteOff {
    id: number,
    docCode: string,
    docDate: Date,
    cid: number | null,
    uid: number,
    writeOffAmount: number,
    targetType: number,
    status: number,
    notes: string,
    createBy: string,
    createTime: Date,
    updateBy: string,
    updateTime: Date,
    isDelete: number,
    pid: number | null,
    did: number | null,
    typeId: number,
    cidStr: string,
    uidStr: string,
    didStr: string,
    pidStr: string,
    details: WriteoffDetail[],
    transferInCid: number | null,
    transferInPid: number | null,
    targetTypeStr: string,
    transferInCidStr: string,
    transferInPidStr: string,

}

export interface WriteoffDetail {
    id: number,
    mainCode: string,
    sourceType: number,
    sourceSheet: string,
    sourceSheetDetail: number,
    settledAmount: number,
    unsettledAmount: number,
    createBy: string,
    createTime: Date,
    updateBy: string,
    updateTime: Date,
    isDelete: number,
    originAmount: number,
}

export interface WriteoffLink {
    fid: number,
    writeoffCode: string,
    sourceCode: string,
    targetCode: string,

}

export interface WriteoffType {
    id: number,
    name: string,
}